<template>
    <div class="left">
        <router-link v-for="(v,i) in RouterList" :to='v.path' :key='i'>{{v.mate.title}}</router-link>
    </div>
</template>
<script>
import RouterList from "../router/RouterList"
export default {
    data(){
        return{
            RouterList:RouterList
        }
    }
}
</script>
<style lang="scss" scoped>
    .left{
        width: 200px;
        height: 100%;
        border:1px solid #ccc;
        margin: 4px;
        border-radius: 10px;
        display: flex;
        flex-direction: column;
        justify-content: start;
        background: rgb(235, 247, 242);
        a{
            width: 100%;
            text-decoration: none;
            color: #000;
            border-bottom: 1px solid #ccc;
            text-align: center;
            line-height: 50px;
            &.router-link-active{
                color:rgb(14, 175, 127)
            }
        }
    }
</style>